var notifierInst = null;
        
        function notifier(cont) {
            this._timer = null;
            this.offset=3;
            this._template = "<div class=\"ui-widget\">" +
                                        "<div class=\"ui-state-[0] ui-corner-all msg-wrap\">" +
                                                "<p><span class=\"ui-icon ui-icon-[1] msg-icon\"></span>[2]</p>" +
                                        "</div>" +
                                "</div>";
            this._container = cont;
        }
        
        notifier.prototype = {            
            showMessage: function(msg) {
        	 
        	  if(!msg) return;
        	  var msgType, msgText;
        	  var msgParts = msg.split("::");
        	  if(msgParts.length==1) {
        		  msgType = "", msgText = msgParts[0];
        	  } else {
        		  msgType = msgParts[0], msgText = msgParts[1];
        	  }
        	
                var props = (msgType.toLowerCase()==="error")?["error","alert"]:["highlight","info"];
                props.push(msgText);
                var html = this._template.replace(/\[(\d+)\]/g, function(s, key) {    
                    return props[key] || s; 
                });                
                this._showPanel(html);
            },
            _showPanel: function(html) {
              window.clearTimeout(this._timer);
               if(html)  
                   this._container.html(html);  
               
               var top = this._container.outerHeight();
               // top = (-1*((top?top:0)+this.offset)) + "px";
               top = "73px";
               this._container.css("top",top).fadeIn(700);
               var x = $("#identify");
               if (x) x.hide();
               
               this._timer = window.setTimeout("notifierInst._hidePanel()", 4000);
            },
            _hidePanel: function() {
                this._container.hide();//fadeOut(700);
                var x = $("#identify");
                if (x) window.setTimeout(x.show(), 3000);
            }
        };